﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Guline.HosterModels.Object
{
    public class Group
    {
        [Key]
        public int ID { get; set; }
        [Required(ErrorMessage="Nhập tên Group")]
        public string Name { get; set; }
        [Range(0, int.MaxValue, ErrorMessage = "Please enter valid integer Number, Larger than 0")]
        public Nullable<int> MaxOrganizes { get; set; }
        public Nullable<int> Status { get; set; }
        public string Notes { get; set; }

        [InverseProperty("Group")]
        public virtual ICollection<Account> Accounts { get; set; }
    }
}
